updateHorizontalMargins

Updates the horizontal margins of the text view and switch. This is useful when the layout direction changes.